﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class CurrencyMap : ClassMap<Currency>
    {
        public CurrencyMap()
        {
            Table("CURRENCY");
            Id(x => x.CurrencyId, "CURRENCY_ID").GeneratedBy.Identity();
            Map(x => x.CurrencySymbol, "CURRENCY_SYMBOL");
            Map(x => x.CurrencyName, "CURRENCY_NAME");

        }
    }
}
